﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HR_VCATONList.aspx.cs" Inherits="ArtLand.OA.Project.HR.HR_VCATONList" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" ID="pang1" AutoSizePanelID="Grid1" />
        <ext:Grid runat="server" ID="Grid1" ShowBorder="false" Title="员工请假申请记录" AllowPaging="true" PageSize="12"
            EnableCheckBoxSelect="FALSE" DataKeyNames="ID" OnRowDataBound="Grid1_RowDataBound"
            OnRowCommand="Grid1_RowCommand" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange"
            EnableRowNumber="True" EnableTextSelection="true" ForceFitFirstTime="true">
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ID="btnNew" Text="请假申请" Icon="Add"></ext:Button>
                        <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </ext:ToolbarSeparator>
                        <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                            OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                            EmptyText="请输入员工编号或员工姓名" Trigger2Icon="Search" runat="server" Width="180px">
                        </ext:TwinTriggerBox>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Columns>
                <ext:BoundField HeaderText="部门" DataField="DepartMent" Width="80px" TextAlign="Center" />
                <ext:BoundField HeaderText="申请日期" DataField="AddTime" TextAlign="Center" Width="140px" />
                <ext:BoundField HeaderText="申请人" DataField="EMNAME" TextAlign="Center" Width="70px" />
                <ext:BoundField HeaderText="请假类型" DataField="VATYPE" TextAlign="Center" Width="80px" />
                <ext:BoundField HeaderText="请假天数" DataField="REQQTY" TextAlign="Center" Width="70px" />
                <ext:BoundField HeaderText="请假原因" DataField="REASON" Width="220px"/>
                <ext:BoundField HeaderText="请假天数" DataField="StartTime" TextAlign="Center" Width="70px"  Hidden="true"/>
                <ext:BoundField HeaderText="请假天数" DataField="EndTime" TextAlign="Center" Width="70px" Hidden="true" />
                <ext:CheckBoxField Width="100px" DataField="IsUserYear" RenderAsStaticField="true" HeaderText="是否使用年假" TextAlign="Center" />
                <ext:BoundField HeaderText="审批状态" DataField="STATUS" TextAlign="Center" Width="70PX" />
                <ext:BoundField HeaderText="操作" DataField="STATUS" TextAlign="Center" Width="150PX" />
                <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" Text="修改" DataTextFormatString="{0}" DataIFrameUrlFields="ID"
                    DataIFrameUrlFormatString="HR_VCATONChange.aspx?id={0}" DataWindowTitleField="EMNAME"
                    DataWindowTitleFormatString="修改{0}的请假申请" TextAlign="Center" HeaderText="修改" Hidden="true" />
                <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top"  ColumnID="ID" Hidden="true"
                    Width="50px" CommandName="Del" TextAlign="Center" HeaderText="删除" Text="删除" />
                 <ext:WindowField ColumnID="myWindowField123" Width="60px" WindowID="Window1" Text="进行审批" DataTextFormatString="{0}" Hidden="true" DataIFrameUrlFields="ID"
                    DataIFrameUrlFormatString="HR_VCATONChange.aspx?id={0}&view=1" DataWindowTitleField="EMNAME"
                    DataWindowTitleFormatString="审批{0}的请假申请" TextAlign="Center" HeaderText="进行审批" />

            </Columns>
        </ext:Grid>
        <ext:HiddenField runat="server" ID="hid_Power"></ext:HiddenField>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="500px" Height="370px">
        </ext:Window>
    </form>
    <script src="../js/extgridbug.js"></script>
</body>
</html>
